/*
 * Config.h
 *
 *  Created on: Sep 9, 2011
 *      Author: gassa
 */

#ifndef CONFIG_H_
#define CONFIG_H_
#include <iostream>
#include <fstream>
#include <map>
#include <utility>
#include <vector>
#include "includes.h"

#define SI_SUPPORT_IOSTREAMS

using namespace std;

class config {
	config(){
		stopwordsString = "";
		initiateMap();
		instanceFlag = true;
	}
	void initiateMap();
public:
	static string path;
	string stopwordsString;
	map<string, string> configMap;
	map<string, string> stopWordsList;
	static bool instanceFlag;
	static config *configInstance;
	static config* getInstance();
	string getValue(string key);
	map<string,string> getStopWordsList();
	string getStopWordsString();
	virtual ~config();
};

#endif /* CONFIG_H_ */
